<template>
  <div>
    <h2>自定义消息插件</h2>
    <div>
      <button @click="showMsg">显示消息</button>
    </div>
  </div>
</template>

<script lang="ts">
import { Component, Vue } from 'vue-property-decorator'

@Component({
  name: 'MessageTest',
  methods: {
    showMsg() {
      this.$message('显示消息')
    },
  },
})
export default class extends Vue {

}

</script>

<style>

</style>
